#!/usr/bin/python
# -*- coding:utf-8 -*-
# @author  : micah
# @time    :  
# @function: 
# @version :


from selenium import webdriver
from selenium.webdriver.common.by import By


browser = webdriver.Chrome()
browser.get('https://pic.netbian.com/4kmeinv/index.html')
print(browser.page_source)
src = browser.find_elements(By.XPATH, '//ul[@class="clearfix"]/li/a/b')  # 多个元素是个列表
# print(src.text)
# print(src)
for i in src:
    # print(i)
    # text 获取文本数据 get_attribute('textContent') 也能获取到文本数据
    # print(i.get_attribute('textContent'))
    print(i.text)
